home *** CD-ROM | disk | FTP | other *** search
- Path: po.CWRU.Edu!mab22
- From: mab22@po.CWRU.Edu (Michael A. Balfour)
- Newsgroups: comp.lang.c
- Subject: Re: Byte Orders and Char Sets?
- Date: 6 Mar 1996 23:04:30 GMT
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- Message-ID: <4hl5lu$jk8@madeline.INS.CWRU.Edu>
- References: <4hkqm1$5dm@madeline.INS.CWRU.Edu>
- Reply-To: mab22@po.CWRU.Edu (Michael A. Balfour)
- NNTP-Posting-Host: kanga.ins.cwru.edu
-
-
- In a previous article, mab22@po.CWRU.Edu (Michael A. Balfour) says:
-
- >static unsigned short int nativeIntTest=0x0001;
- >static char *nativeIntTest2=(char *)&nativeIntTest;
- >#define NativeByteOrder() ((nativeIntTest2[0]==0x00) ? LITTLE_ENDIAN : BIG_ENDIAN)
- ^^^^-- should be 0x01
-
- I just thought I'd correct the typo so that we can focus on alternate
- implementations as opposed to my mistakes. :)
-
- Mike Balfour
- --
- ----------------------------------+--------------------------------
- Mike Balfour, Partner | BS/MS Graduate - ECMP
- Overload Engineering | Case Western Reserve University
- "New Ideas for a Brighter Future" | Cleveland, OH
-